package com.zsc.wxapp.services;

import com.zsc.wxapp.entity.PythonResponse;
import org.apache.commons.lang3.tuple.Pair;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;


public interface UploadImageService {

    /**
     * 向品规接口发送请求，处理返回的json数据
     * @param file
     * @return
     */
    String uploadToExternalAPI(MultipartFile file);

    /**
     * 向python发送请求
     * @param file
     * @param json
     * @param url
     * @param downloadUrl
     * @return
     * @throws Exception
     */
    PythonResponse uploadToPython(MultipartFile file, String json, String url, String downloadUrl) throws Exception;
}
